package com.hyzx.qbasic.admin.common.scheduling;

import java.util.concurrent.ScheduledFuture;

/**
 * Created by 黄江华 on 2019/3/20
 */

public final class ScheduledTask {

    volatile ScheduledFuture<?> future;

    public void cancel() {
        ScheduledFuture<?> future = this.future;
        if (future != null) {
            future.cancel(true);
        }
    }
}